import 'package:flutter/src/widgets/editable_text.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:get/get.dart';
import 'package:get/get_core/src/get_main.dart';

import '../../../../bean/chart_bean.dart';
import '../../../../bean/station_list.dart';

class StationDetailState {
  EasyRefreshController controller = EasyRefreshController();

  TextEditingController searchController = TextEditingController();


  /// 当前页
  int pageNum = 1;
  /// 页码
  int pageSize = 10;
  /// 是否还有更多，默认还有false
  bool noMore = false;
  StationBean stationBean = StationBean();
  int isMonth = 0; // 0 月 1年
  int year = DateTime.now().year;
  int month = DateTime.now().month;
  double todayPower = 0;
  double monthPower = 0;
  int barMaxValue = 10000;
  List<ChartBean> chartList = [];
  /// 数据集合
  List<dynamic> dataList = [];

  StationDetailState() {
    var map = Get.arguments;
    if (map["pageData"] != null) {
      stationBean = map["pageData"];
    }
  }
}
